<table class="table table-striped">
    <thead>
        <tr>
            <th>{:__('Title')}</th>
            <th>{:__('Content')}</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td>活动id:</td>
        <td>{$row['id']}</td>
    </tr>
    <tr>
        <td>活动名称:</td>
        <td>{$row['name']}</td>
    </tr>
    <tr>
        <td>活动唯一标识:</td>
        <td>{$row['serial']}</td>
    </tr>

    <tr>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Thumb')}:</label>
            {foreach name="$row['thumb']" item="vo"}
            <img src = "{$vo}" width="100px" height="80px" style="inline-block;">
            {/foreach}
        </div>
    </tr>
    <tr>
        <td>创建时间:</td>
        <td>{$row['createTime']}</td>
    </tr>
    <tr>
        <td>活动开始时间:</td>
        <td>{$row['startTime']}</td>
    </tr>

    <tr>
        <td>时长(分):</td>
        <td>{$row['duration']}</td>
    </tr>
    <tr>
        <td>分类:</td>
        <td>{$row['category']}</td>
    </tr>
    <tr>
        <td>标签:</td>
        <td>{$row['tags']}</td>
    </tr>
    <tr>
        <td>是否录制:</td>
        <td>{$row['isrecording']}</td>
    </tr>
    <tr>
        <td>所属系列:</td>
        <td>{$row['series_id']}</td>
    </tr>

    <tr>
        <td>活动简介:</td>
        <td>{$row['summary']}</td>
    </tr>
    <tr>
        <td>活动祥情:</td>
        <td>{$row['detail']}</td>
    </tr>
    <tr>
        <td>状态:</td>
        <td>{$row['status_text']}</td>
    </tr>

    </tbody>
</table>
<table>
    {if $row['tlist']}
<div class="form-group row">
    <label class="control-label col-xs-12 col-sm-2">{:__('售卖信息')}:</label>

    <div class="col-xs-12 col-sm-8">
        <dl class="fieldlist" data-template="basictpl" data-name="row[basic]">
            <dd>
                <ins>{:__('入场券名称')}</ins>
                <ins>{:__('入场券价格')}(¥)</ins>
                <ins>{:__('数量')}</ins>
            </dd>

        </dl>

            <dd class="form-inline">
                {foreach name="$row['tlist']" item="vo"}
                    <ins><input type="text"  class="form-control" value="{$vo['name']}"  size="20" disabled/></ins>
                    <ins><input type="text"  class="form-control" value="{$vo['price']}" disabled/></ins>
                    <ins><input type="text"  class="form-control" value="{$vo['number']}" disabled/></ins><br/>
                {/foreach}
            </dd>

    </div>
</div>
</table>
{/if}
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">

    <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>


<script>
    function agree(state) {
      //  var ids = parseFloat(id);
        var ids = {$row['id']};
        var data={
            "ids": ids,
            "state": state
        };
        $.ajax({
            type: "GET",
            url: "students/order/refund/operate",
            data: data,
            contentType: "application/json;charset=utf-8",
            confirm: '确认发送操作请求？',
            success: function (data, ret) {
                Layer.alert( "返回数据：" + JSON.stringify(data));
                // //如果需要阻止成功提示，则必须使用return false;
                // table.bootstrapTable('refresh',{});
                // top.window.location.reload();
                // Fast.api.close();
                //关闭弹出框
                //Fast.api.close(data);
                //刷新父级页面
                window.parent.location.reload();
                //刷新当前页面
                //table.bootstrapTable('refresh', {});
                //return true;
            },
            error: function (data, ret) {
                //console.log(data, ret);
                Layer.alert(ret.msg);
                return false;
            }

        });
    }


</script>
